package org.example;

public class 第二十六章_枚举 {
    public static void main(String[] args) {
        switch (Color.RED){
            case RED:
                System.out.println("选择的是红色");
                break;
            case GREEN:
                System.out.println("选择的是绿色");
                break;
            case BLUE:
                System.out.println("选择的是蓝色");
                break;
        }
    }

    enum Color{
        RED, GREEN, BLUE;
    }
}
